package com.tbit.main.service.impl;

import com.tbit.main.dao.log.OperateLogDao;
import com.tbit.main.pojo.OperateLog;
import com.tbit.main.service.OperateLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 用户操作日志(OperateLog)表服务实现类
 *
 * @author jing
 * @since 2021-04-07 10:04:07
 */
@Service("operateLogService")
public class OperateLogServiceImpl implements OperateLogService {
    @Autowired
    private OperateLogDao operateLogDao;


    /**
     * 新增用户操作日志
     *
     * @param operateLog 用户操作日志
     * @return 结果
     */
    @Override
    public int insertOperateLog(OperateLog operateLog) {
        return operateLogDao.insertOperateLog(operateLog);
    }

    /**
     * 修改用户操作日志
     *
     * @param operateLog 用户操作日志
     * @return 结果
     */
    @Override
    public int updateOperateLog(OperateLog operateLog) {
        return operateLogDao.updateOperateLog(operateLog);
    }

    /**
     * 批量删除用户操作日志
     *
     * @param types 需要删除的用户操作日志ID
     * @return 结果
     */
    @Override
    public int deleteOperateLogByIds(Integer[] types) {
        return operateLogDao.deleteOperateLogByIds(types);
    }

    /**
     * 删除用户操作日志信息
     *
     * @param type 用户操作日志ID
     * @return 结果
     */
    @Override
    public int deleteOperateLogById(Integer type) {
        return operateLogDao.deleteOperateLogById(type);
    }
}